import type React from "react";

export type Status = "wait" | "process" | "success" | "error" | React.ReactNode;

export type StatusInfo = {
  icon: (props: any) => React.ReactNode;
  color?: string;
};

export interface Node {
  stageName: string;
  taskName: string;
}

export interface Line {
  from: Node;
  to: Node & { join: boolean };
}

export interface BoundingBox {
  top: number;
  left: number;
  width: number;
  height: number;
}

export interface LinkLine {
  from: { x: number; y: number; width: number; height: number };
  to: {
    x: number;
    y: number;
    crossesWidth: number;
    width: number;
    height: number;
  };
}
